package net.lzzy.arraylist;

public class TestGenericStack {
    public static void main(String[] args) {
        GenericStack<String> stack = new GenericStack<>();
        stack.push("Londan");
        stack.push("Paris");
        stack.push("Berlin");
        System.out.println(stack.toString());
        GenericStack<Integer> stack2 = new GenericStack<>();
        stack2.push(1);
        stack2.push(2);
        stack2.push(3);
        System.out.println(stack2.toString());
        GenericStack<Double> stack3 = new GenericStack<>();
        stack3.push(1.11);
        stack3.push(2.11);
        stack3.push(3.11);
        System.out.println(stack3.toString());
        stack3.pop();
        System.out.println(stack3);
        GenericStack<String> stack4 = new GenericStack<>();
        System.out.println(stack4.isEmpty());

    }

}
